{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="#">广告位</a></li>
</ul>
<div class="app-content">
	<div class="app-filter">
		<div class="filter-action">
			<a class="btn btn-primary" href="{php echo web_url('dashboard/banner/edit')}">添加广告</a>
		</div>
	</div>
	<div class="app-table-list">
		<div class="table-responsive">
			<table class="table table-hover">
				<thead>
					<tr>
						<th class="text-center" width="15%">图片</th>
						<th class="text-center" width="10%">显示顺序</th>
						<th class="text-center" width="20%">标题</th>
						<th class="text-center" width="30%">连接</th>
						<th class="text-center" width="10%">状态</th>
						<th class="text-center" width="15%">操作</th>
					</tr>
				</thead>
				<tbody>
					{loop $banners $banner}
					<tr class="text-center">
						<td><img class="scrollLoading" src="{php echo tomedia($banner['thumb'])}" data-url="{php echo tomedia($banner['thumb'])}" height="50" width="100"/></td>
						<td>{$banner['displayorder']}</td>
						<td>{$banner['name']}</td>
						<td class="text-lue">{$banner['link']}</td>
						<td>{php echo tpl_change_status('dashboard/banner/changeStatus&id='.$banner['id'],$banner['enabled'])}</td>
						<td>
							<a class="btn btn-sm btn-warning" href="{php echo web_url('dashboard/banner/edit',array('id'=>$banner['id']))}">编辑</a>
							<a class="btn btn-sm btn-danger" data-toggle="ajaxRemove" href="{php echo web_url('dashboard/banner/delete',array('id'=>$banner['id']))}" data-confirm="确定删除当前信息?">删除</a>
						</td>
					</tr>
					{/loop}
				</tbody>
			</table>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">

			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>
</div>
{php include wl_template('common/footer');}